﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using CommonLibraries.DeviceLibrary;
using System.Windows.Forms;
using PolePositionMobileUtilityGeneral;
using PolePositionMobileUtilityEntity;

namespace PolePositionMobileUtilityApplication
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main()
        {
            try
            {
                frmHome a = new frmHome();
                a.Show();
                Application.Run(a);
                GPS.GetInstance().Dispose();
                //TestEntities t = new TestEntities();
                //t.Test();


                ////Powers camera off
                //m_Camera.Off(0, 0);
                ////Shows homepage
                //frmPrototype _Form = new frmPrototype();
                //_Form.Show();
                ////Starts application
                //Application.Run(_Form);
            }
            catch (Exception _exception)
            {
                MessageBox.Show("An error was encountered while running the application. It is possible that the application is updating; if so, press OK and restart the application." + Environment.NewLine + "Error details are as follows:" + Environment.NewLine + _exception.Message, PPIConstants.K_AppName);
                Application.Exit();
            }
        }

    }
}
